<style type="text/css">  
    input, textarea, .uneditable-input{
        width:550px;
    }
</style>
<form id="fm_user_update"  class="form-horizontal form-inline" action="__APP__/System/users_update" method="post">  
<div class="row-fluid">

    <div class="span">

        <div class="box gradient">

            <div class="title">
                <h4>
                    <span class="icon16 cc-icon-list-4"></span>
                    <span>修改用户</span>
                </h4>
            </div>
            <div class="content noPad clearfix">  
        <legend></legend>
        
        <fieldset>
            <div class="control-group">
                <label class="control-label" for="">用户名</label>
                <div class="controls">
                    <input id="Id" name="Id" type="hidden" value="{$data['Id']}" />
                    <input type="text" id="UserName" name="UserName" style="width:120px;" autocomplete="false" value="{$data['UserName']}"/>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="">密码</label>
                <div class="controls">
                    <input type="password" id="PassWord" name="PassWord" style="width:120px;" value="" autocomplete="false" />
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="">确认密码</label>
                <div class="controls">
                    <input type="password" id="PassWord2" name="PassWord2" style="width:120px;" value=""/>
                </div>
            </div>

            <div class="control-group">
                <label class="control-label" for="">用户描述</label>
                <div class="controls">
                  <textarea align="left"  rows="4" cols="40" id="UserInfo" name="UserInfo" style="width:370px">{$data['UserInfo']}</textarea>
                </div>
            </div>
            
            <div class="control-group">
                <label class="control-label" for="">联系方式</label>
                <div class="controls">
                  
                  <input type="text" id="Phone" name="Phone" style="width:120px;" value="{$data['Phone']}"/>
                </div>
            </div>     
            <div class="control-group">
                <label class="control-label" for="">E-mail</label>
                <div class="controls">
                    <input type="Email" id="Action" name="Email" style="width:200px;" value="{$data['Email']}"/>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="">用户组</label>
                <div class="controls" style="width:300px">
                    <tagLib name="html" /> 
		    <html:select id="UserLevel" name="UserLevel" options="levels" /> 
                    <input id="hi_userlevel" type="hidden" value="{$data['UserLevel']}" />
                </div>
            </div>
            <div class="control-group">
                <label class="control-label" for="Status">启用</label>
                <div class="controls marginT5">
                        <input id="View" name="Status" type="checkbox" <php> if($data['Status']==1) echo 'checked="checked"'</php> >
                </div>
            </div>
        </fieldset>

               <div class="form-actions " style="margin-bottom: 0px;">
            <button type="submit" class="btn btn-primary">保存更改</button>
            <a class="btn" onclick="history.back();">取消</a>
          </div>

            </div>

        </div><!-- End .box -->

    </div><!-- End .span12 -->
</div>
</form>

<script type="text/javascript">
    $(function(){
        
        //$("#DepartId").val($("#hi_departId").val());
        //$("#DepartId").change();
        
        $("#UserLevel").val($("#hi_userlevel").val());
        $("#UserLevel").change();
        
        
        $("#fm_user_update").validate({
            rules: {
                    UserName : "required",
                    PassWord : {minlength:6,required:true},
                    PassWord2 :  {equalTo:"#PassWord"},
                    Email :  {email:true}
            },
            messages: {
                    UserName : "请输入用户名称!",
                    PassWord :{required:"请输入密码!",minlength:"长度必须达到6位以上！"},
                    PassWord2 :"两次密码不一样!",
                    Email :"E-mail 格式不正确!"

            }
        });
        
    });
     
         
         
</script>